package com.mercury.ec.framework.air.core.client.impl.sunstn.dto.rtkt;

import com.mercury.ec.framework.air.core.client.impl.sunstn.dto.SunstnCommonReqDTO;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * RTKT Request DTO
 *
 * @author hesx
 */
@Data
@NoArgsConstructor
public class SunstnRtktReqDTO extends SunstnCommonReqDTO {
    /**
     * 13 位票号（不能加第三位后边的‘－’）
     */
    @NotBlank(message = "ticket不能为空")
    private String ticket;

    public SunstnRtktReqDTO(String ticket) {
        this.ticket = ticket;
    }

    @Override
    public String getCmd() {
        return "rtkt";
    }
}
